package cn.xy.base.server.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 管理员登录DTO类
 *
 *  @author xy
 */
@Data
public class AdminLoginDTO {

    @ApiModelProperty(value = "用户名", dataType = "String", required = true)
    @NotEmpty(message = "用户名不可为空")
    private String username;

    @ApiModelProperty(value = "密码", dataType = "String", required = true)
    @NotEmpty(message = "密码不可为空")
    private String password;

}
